import { DatabaseParameterValidator } from './databaseValidator';

export enum ValidatorType {
  DATABASE
}
export class ParameterValidatorFactory {
    
  static databaseValidator: DatabaseParameterValidator = new DatabaseParameterValidator();

  static createValidator(type: ValidatorType) {
    if (type === ValidatorType.DATABASE) {
      return ParameterValidatorFactory.databaseValidator;
    }
    throw new Error('gateway only support database parameters validator');
  }
}